package com.youths.dao;

import com.youths.domain.ExpertInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ExpertInfoMapper {
    List<ExpertInfo> getList(@Param("expertId") Integer expertId,
                             @Param("consumerId") Integer consumerId,
                             @Param("name") String name,
                             @Param("company") String company,
                             @Param("title") String title);

    Integer updateExpertInfo(@Param("expertId") Integer expertId,
                             @Param("name") String name,
                             @Param("company") String company,
                             @Param("title") String title,
                             @Param("state") Integer state);

    List<ExpertInfo> getListByConsumerId(@Param("expertId") Integer expertId);

    Integer insertExpert(@Param("consumerId") Integer consumerId,
                         @Param("name") String name,
                         @Param("company") String company,
                         @Param("title") String title);
}
